package com.midele.goodstuff.ui.main

import androidx.annotation.StringRes
import com.midele.goodstuff.R

sealed class ScreenPage(
    val route: String,
    @StringRes val resId: Int = 0, // 如果没有文字标题，就不需要使用这个属性
    val iconSelect: Int,
    val iconUnselect: Int,
    var isShowText: Boolean = true
) {
    object Explore : ScreenPage(
        route = "explore",
        resId = R.string.str_main_title_explore,
        iconSelect = R.mipmap.ic_main_tab_explore_sel,
        iconUnselect = R.mipmap.ic_main_tab_explore_unsel,
    )

    object Record : ScreenPage(
        route = "record",
        resId = R.string.str_main_title_record,
        iconSelect = R.mipmap.ic_main_tab_explore_sel,
        iconUnselect = R.mipmap.ic_main_tab_explore_unsel,
    )

    object Publish : ScreenPage(
        route = "publish",
        resId = R.string.str_main_title_publish,
        iconSelect = R.mipmap.ic_main_tab_publish,
        iconUnselect = R.mipmap.ic_main_tab_publish,
    )

    object Message : ScreenPage(
        route = "message",
        resId = R.string.str_main_title_message,
        iconSelect = R.mipmap.ic_main_tab_message_sel,
        iconUnselect = R.mipmap.ic_main_tab_message_unsel,
    )

    object Mine : ScreenPage(
        route = "mine",
        resId = R.string.str_main_title_mine,
        iconSelect = R.mipmap.ic_main_tab_mine_sel,
        iconUnselect = R.mipmap.ic_main_tab_mine_unsel,
    )
}
